package ventas.dao;

import java.sql.*;

public final class ConexionBD {

    public static Connection obtenerConexion() throws SQLException {
        Connection con = null;
        try {
            Class.forName("com.mysql.jdbc.Driver");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        con = DriverManager.getConnection("jdbc:mysql://127.0.0.1/masters3", "root",
                "");
        return con;
    }
}
